<?php
/**
 * @package		简易CMS
 * @subpackage	计划任务：自动采集新闻
 * @version		$Id: cron_importnews.php 8 2012-06-07 12:37:35Z htmambo@gmail.com $
 * @author		Hoping
 * @copyright	Copyright (C) 2009 Hoping Software Studio. All rights reserved.
 */

if(!defined('IN_JYCMS')) {
	exit('Access Denied');
}

include_once libfile('function/focus');
//搜索出第一个需要更新的词汇
$timenow = TIMESTAMP-24*60*60;
$sql = "SELECT * FROM #__focus_keywords WHERE readtime<='$timenow' AND catid!='0' AND enabled='1' order by readtime asc";
$row = DB::fetch_array(DB::query($sql));
if($row){
	require_once libfile('class/focus');
	$bi = new focus();
	$bi->read($row, 1);
}
